package org.tg.model.activity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.tg.model.base.BaseEntity;

import java.util.Date;

/**
 * @Author Glow
 * @Date 2023-06-23 15:20:38
 * @Description 团购秒杀活动
 * @Version 1.0
 */
@Data
@ApiModel(description = "Seckill（团购秒杀活动）")
@TableName("seckill")
public class Seckill extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "活动标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("start_time")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("end_time")
    private Date endTime;

    @ApiModelProperty(value = "上下线状态")
    @TableField("status")
    private Integer status;

}